package com.supermarket.manage.common.dto.home.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-18 19:03
 **/
@Data
@ApiModel("TopDto:排名 数据对象")
public class TopDto<T> implements Serializable {

    private static final long serialVersionUID = 5209952098169051354L;

    /**
     * 排名对象
     */
    @ApiModelProperty(value = "排名对象")
    private T obj;

    /**
     * 金额
     */
    @ApiModelProperty(value = "金额")
    private BigDecimal sum;
}
